package router

import (
	"gin-rkboot-sw/internal/controller"
	"github.com/gin-gonic/gin"
)

var (
	User = rUser{}
)

type rUser struct{}

func (r *rUser) BindRouter(engine *gin.Engine) {
	v1 := engine.Group("/v1/user")
	{
		v1.GET("/", controller.User.List)
		v1.GET("/:id", controller.User.Detail)
		v1.POST("/", controller.User.Add)
		v1.PUT("/", controller.User.Update)
		v1.DELETE("/:id", controller.User.Delete)
	}
}
